package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.dto.CouponPageQueryDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.AddressBook;
import com.sky.entity.Category;
import com.sky.entity.Coupon;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.vo.CouponVO;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface CouponMapper {


    /**
     * 菜品分页查询
     *
     * @param couponPageQueryDTO
     * @return
     */
    Page<CouponVO> pageQuery(CouponPageQueryDTO couponPageQueryDTO);

    void insert(Coupon coupon);
    //类型

    @Update("update coupon set state = 0 where id = #{id}")
    void deleteInStatus(Coupon coupon);

    @Delete("delete from coupon where id = #{id}")
    void deleteById(Long id);




}
